projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
673c57d
)
(sref): Increase CHAR in the while loop.
author
Kenichi Handa
<handa@m17n.org>
Wed, 4 Mar 1998 07:42:24 +0000
(07:42 +0000)
committer
Kenichi Handa
<handa@m17n.org>
Wed, 4 Mar 1998 07:42:24 +0000
(07:42 +0000)
lisp/subr.el
patch
|
blob
|
history
diff --git
a/lisp/subr.el
b/lisp/subr.el
index 2d55e682d3a83d82eea8e0f1554450b2c0c2922d..c14a048fb5231f3214e5b41981aa8a97e80f537b 100644
(file)
--- a/
lisp/subr.el
+++ b/
lisp/subr.el
@@
-516,7
+516,8
@@
as returned by the `event-start' and `event-end' functions."
Please convert your programs to use `aref' with character-base index."
(let ((byte 0) (char 0))
(while (< byte byte-index)
- (setq byte (+ byte (char-bytes (aref string byte)))))
+ (setq byte (+ byte (char-bytes (aref string char)))
+ char (1+ char)))
(aref string char)))
;; Some programs still use this as a function.